package com.gis3c.sys.service;

import com.gis3c.sys.entry.vo.RoleModel;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleService {
	public void CreateRole(RoleModel roleModel);
    public void DeleteRole(String roleId);
    public void DeleteRoles(String[] roleIds);
	public void UpdateRole(RoleModel newRole);


	public RoleModel FindRoleById(String roleId);
	public List<RoleModel> FindRoleByName(String roleName);
	public List<RoleModel> FindRoleByAliasName(String aliasName);

	public Set<String> findRolesByUserId(String usernId);
	public Map<String,Object> findRolesByCorrelatedUser(String usernId, Integer pageSize, Integer currentPage);
	public Set<String> findRolesByUserName(String userName);

	public List<RoleModel> RoleList(Integer pageSize, Integer currentPage);
	public Integer RoleCount();

	public void correlationRoles(String userId, String... roleIds);
	public void uncorrelationRoles(String userId,String...userIds);

	public Integer correlationMenus(String roleId, String appId, String... menuIds);
    public Integer uncorrelationMenus(String roleId);
}
